<extend name="Base/common" />
<block name="sidenav">
	<ul class="mod-bar" >
        <li>
			<a href="{:U('Admin/Wechat/lists')}" class=" icon icon-home active">
			    <span>公众号管理</span>
			</a>
        </li>
    </ul>
</block>
<block name="main_content">
<div class="aw-content-wrap">
    <div class="mod">
	        <div class="mod-head">
	            <h3>
	                <include file="Public/nav" />
	            </h3>
	        </div>
	        <div class="mod-body tab-content">
	            <div class="tab-pane active" id="list">
	                <div class="mod-table-head">
	                    <a class="btn btn-primary" href="{:U('add')}">新增</a>
	                    <a class="btn btn-success" onclick="$('#action').val('del'); AWS.ajax_post($('#batchs_form'));" href="javascript:;">删除</a>
	                    <a class="btn btn-danger" onclick="$('#action').val('del'); AWS.ajax_post($('#batchs_form'));" href="javascript:;">删除</a>
	                </div>
	                <br>
	                <form id="batchs_form" action="http://douchat.cc/?/admin/ajax/notice_manage/" method="post">
	                <input type="hidden" id="action" name="action" value="del">
	                <div class="table-responsive">
	                    <table class="table table-striped">
	                        <thead>
	                            <tr>
	                                <th><div class="icheckbox_square-blue" style="position: relative;"><input type="checkbox" class="check-all" style="position: absolute; top: -20%; left: -20%; display: block; width: 140%; height: 140%; margin: 0px; padding: 0px; border: 0px; opacity: 0; background: rgb(255, 255, 255);"><ins class="iCheck-helper" style="position: absolute; top: -20%; left: -20%; display: block; width: 140%; height: 140%; margin: 0px; padding: 0px; border: 0px; opacity: 0; background: rgb(255, 255, 255);"></ins></div></th>
	                                <th>公众号名称</th>
	                                <!-- <th>评论</th> -->
	                                <th>公众号类型</th>
	                                <th>创建时间</th>
	                                <th>状态</th>
	                                <th>操作</th>
	                            </tr>
	                        </thead>
	                        <tbody>
	                        	<volist name="lists" id="vo">
	                            <tr>
	                                <td><div class="icheckbox_square-blue" style="position: relative;"><input type="checkbox" name="notice_ids[]" value="7" style="position: absolute; top: -20%; left: -20%; display: block; width: 140%; height: 140%; margin: 0px; padding: 0px; border: 0px; opacity: 0; background: rgb(255, 255, 255);"><ins class="iCheck-helper" style="position: absolute; top: -20%; left: -20%; display: block; width: 140%; height: 140%; margin: 0px; padding: 0px; border: 0px; opacity: 0; background: rgb(255, 255, 255);"></ins></div></td>
	                                <td>{$vo.name}</td>
	                                <!-- <td>0</td> -->
	                                <td>
	                                	<switch name="vo.type">
	                                		<case value="1">普通订阅号</case>
	                                		<case value="2">微信认证订阅号</case>
	                                		<case value="3">普通服务号</case>
	                                		<case value="4">微信认证服务号</case>
	                                	</switch>
	                                </td>
	                                <td>{$vo.add_time|date='Y-m-d H:i',###}</td>
	                                <td>
	                                	<switch name="vo.status">
	                                		<case value="0">禁用</case>
	                                		<case value="1">正常</case>
	                                		<case value="2">审核中</case>
	                                	</switch>
	                                </td>
	                                <td><a href="{:U('index')}" class="icon icon-edit md-tip" title="" data-original-title="管理公众号">管理</a><a href="{:U('edit')}" class="icon icon-edit md-tip" title="" data-original-title="编辑">编辑</a><a href="{:U('Admin/Attribute/lists', array('model_id'=>$vo['id']))}" class="icon icon-lock md-tip" title="" data-original-title="删除">删除</a></td>
	                            </tr>
	                        	</volist>                                                        
	                        </tbody>
	                    </table>
	                </div>
	                </form>
	                <div class="mod-table-foot">
	                    <div class="page-control"><ul class="pagination pull-right"><li class="active"><a href="javascript:;">1</a></li><li><a href="http://douchat.cc/?/admin/article/list/page-2">2</a></li><li><a href="http://douchat.cc/?/admin/article/list/page-3">3</a></li><li><a href="http://douchat.cc/?/admin/article/list/page-4">4</a></li><li><a href="http://douchat.cc/?/admin/article/list/page-2">&gt;</a></li><li><a href="http://douchat.cc/?/admin/article/list/page-7">&gt;&gt;</a></li></ul></div>
	                    
	                </div>
	            </div>
	        </div>
	    </div>
</div>
</block>